package com.ossjk.qlh.system.entity;

import java.io.Serializable;
import java.util.Date;

import org.springframework.format.annotation.DateTimeFormat;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.ossjk.core.base.entity.BaseEntity;

import io.swagger.annotations.ApiModelProperty;

/**
 *  
 * 日志信息
 * @author chair
 * @since 2020-07-11
 */
public class Loginfo extends BaseEntity<Loginfo> {

	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@ApiModelProperty(value = "", required = true)
	@TableId("id")
	private String id;
	/**
	 * 用户id
	 */
	@ApiModelProperty(value = "用户id")
	@TableField("uid")
	private String uid;
	/**
	 * 登录ip
	 */
	@ApiModelProperty(value = "登录ip")
	@TableField("ip")
	private String ip;
	/**
	 * 客户端
	 */
	@ApiModelProperty(value = "客户端")
	@TableField("useragent")
	private String useragent;
	/**
	 * 模块
	 */
	@ApiModelProperty(value = "模块")
	@TableField("module")
	private String module;
	/**
	 * 操作
	 */
	@ApiModelProperty(value = "操作")
	@TableField("operation")
	private String operation;
	/**
	 * 操作时间
	 */
	@ApiModelProperty(value = "操作时间")
	@TableField("optime")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	private Date optime;
	/**
	 * 日志类型 1-业务、2-错误信息
	 */
	@ApiModelProperty(value = "日志类型 1-业务、2-错误信息")
	@TableField("type")
	private Integer type;
	/**
	 * 操作接口
	 */
	@ApiModelProperty(value = "操作接口")
	@TableField("uri")
	private String uri;
	/**
	 * 内容
	 */
	@ApiModelProperty(value = "内容")
	@TableField("content")
	private String content;
	 
	public String  getId() {
		return id;
	}
	public void  setId(String id) {
		this.id = id;
	}
	public String  getUid() {
		return uid;
	}
	public void  setUid(String uid) {
		this.uid = uid;
	}
	public String  getIp() {
		return ip;
	}
	public void  setIp(String ip) {
		this.ip = ip;
	}
	public String  getUseragent() {
		return useragent;
	}
	public void  setUseragent(String useragent) {
		this.useragent = useragent;
	}
	public String  getModule() {
		return module;
	}
	public void  setModule(String module) {
		this.module = module;
	}
	public String  getOperation() {
		return operation;
	}
	public void  setOperation(String operation) {
		this.operation = operation;
	}
	public Date  getOptime() {
		return optime;
	}
	public void  setOptime(Date optime) {
		this.optime = optime;
	}
	public Integer  getType() {
		return type;
	}
	public void  setType(Integer type) {
		this.type = type;
	}
	public String  getUri() {
		return uri;
	}
	public void  setUri(String uri) {
		this.uri = uri;
	}
	public String  getContent() {
		return content;
	}
	public void  setContent(String content) {
		this.content = content;
	}
	 
	 
	@Override
	protected Serializable pkVal() {
		return null;
	}

	@Override
	public String toString() {
		return "Loginfo ["
	+"id=" + id +","
	+"uid=" + uid +","
	+"ip=" + ip +","
	+"useragent=" + useragent +","
	+"module=" + module +","
	+"operation=" + operation +","
	+"optime=" + optime +","
	+"type=" + type +","
	+"uri=" + uri +","
	+"content=" + content 
	+ "]";
	}

	 
}
